package com.nsoft.html5npub.objects;

import com.nsoft.html5npub.utils.Constant;

public class PageVideo {
	private boolean autoPlay;
	private int width;
	private int height;
	private int posX;
	private int posY;
	private String filePath;
	
	public boolean isAutoPlay() {
		return autoPlay;
	}
	public void setAutoPlay(boolean autoPlay) {
		this.autoPlay = autoPlay;
	}
	
	public void setAutoPlay(String autoP){
		this.autoPlay=autoP.equalsIgnoreCase("y")||
			autoP.equalsIgnoreCase(Constant.DIALOG_YES);
	}
	
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	
	public int getPosX() {
		return posX;
	}
	public void setPosX(int posX) {
		this.posX = posX;
	}
	
	public int getPosY() {
		return posY;
	}
	public void setPosY(int posY) {
		this.posY = posY;
	}
	
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	
}
